package com.aaa.ssm.service.impl;

import com.aaa.ssm.dao.OrderStatisticsDao;
import com.aaa.ssm.entity.OrderStatistics;
import com.aaa.ssm.service.OrderStatisticsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OrderStatisticsServiceImpl implements OrderStatisticsService {
    //依赖注入
    @Resource
    private OrderStatisticsDao orderStatisticsDao;

    /**
     * 查询景区表和订单表 以订单表为主 拿到当前月份的不同景区的订单数 景区名称 和时间
     * @param monthDay
     * @return
     */
    @Override
    public List<OrderStatistics> queryByScenicAndOrder(String monthDay,String scenicName) {
        return orderStatisticsDao.queryByScenicAndOrder(monthDay,scenicName);
    }
}
